package com.changpay.zywy.adapter

import android.content.Context
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.changpay.zywy.R
import com.changpay.zywy.bean.SystemMessageBean

/**
 * Created by chenxz on 2018/4/22.
 */
class SystemMessageAdapter(private val context: Context?, datas: MutableList<SystemMessageBean>) :
    BaseQuickAdapter<SystemMessageBean, BaseViewHolder>(R.layout.item_system_message, datas) {

    override fun convert(helper: BaseViewHolder?, item: SystemMessageBean?) {
        item ?: return
        helper ?: return
        helper.setText(R.id.tv_title, item.push_title).setText(R.id.tv_time, item.push_time)
            .setText(R.id.tv_message, item.push_message)
    }

}
